/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.telsoft.security.business;

import com.telsoft.security.data.SEC_DATA_Group;
import com.telsoft.security.entity.SEC_ETT_Group;
import java.util.List;

/**
 *
 * @author nguyenthang
 */
public class SEC_BU_Group {

    public static SEC_ETT_Group getGroupByID(int GROUP_ID) {
        SEC_DATA_Group DA = new SEC_DATA_Group();
        return DA.getAllOfGroupByID(GROUP_ID);
    }
    
    public static List<SEC_ETT_Group> getAllGroup(){
        SEC_DATA_Group DA = new SEC_DATA_Group();
        return DA.getAllGroup();
    }
    public static SEC_ETT_Group getGroupByName(String grName){
        SEC_DATA_Group DA = new SEC_DATA_Group();
        return DA.getGroupByName(grName);
    }
    public static void deleteGroupByID(int groupID){
        SEC_DATA_Group DA = new SEC_DATA_Group();
        DA.deleteGroupByID(groupID);
    }
    public static void addGroup(SEC_ETT_Group group){
        SEC_DATA_Group DA = new SEC_DATA_Group();
        DA.addGroup(group);
    }
}
